import type { Reader } from "./reader";

export interface Book {
  isbn: string;
  category: Category;
  bookName: string;
  author: string;
  publisher: string;
  publishDate: number;
  unitPrice: number;
  imgUrl: string;
  summary: string;
  allNum: number;
  tags: string;
  lastNum: number;
  status: number;
  rackNumber: number;
  reserveNum: number;
}

export interface Category {
  id: number;
  categoryName: string;
}

export interface BorrowBook {
  id:         number;
  book:       Book;
  reader:     Reader;
  borrowDate: number;
  returnDate: number;
  fine:       number;
  status:     number;
}
export interface ReserveBook {
  id:         number;
  reader:     Reader;
  book:       Book;
  status:     number;
}

export interface Category {
  id:           number;
  categoryName: string;
}
